package Filter;

import jakarta.servlet.*;
import jakarta.servlet.annotation.WebFilter;

import java.io.IOException;

/**
 * @Author 86152
 * @create 2024/5/27 17:42
 */
@WebFilter("/*")
public class Afilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("1  Afilter before");

        filterChain.doFilter(servletRequest,servletResponse);

        System.out.println("5 Afilter after");
    }
}
